package com.jt.Userr;

import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/user")
public class UserControllerA {
    @Autowired
    private UserserviceA userserviceA;

    @GetMapping("/findAdd")
    public List<User> findAll(){
        return userserviceA.findAllA();
    }

}
